package indi.jp.project.business.pub.dao;

import indi.jp.project.business.pub.pojo.po.OfficePO;
import indi.jp.project.business.pub.pojo.query.OfficeQuery;
import org.apache.ibatis.annotations.Mapper;

import java.sql.SQLException;
import java.util.List;

/**
 * 办事处
 *
 * @author jiangping
 * @date 2022/6/5
 */
@Mapper
public interface OfficeDAO {

    List<OfficePO> queryList(OfficeQuery query) throws SQLException;

    int queryCount(OfficeQuery query) throws SQLException;

    int insert(OfficePO officePO) throws SQLException;

    int update(OfficePO officePO) throws SQLException;

    OfficePO findById(String id) throws SQLException;

    void deleteById(String id) throws SQLException;

}
